﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace FlightSearchServer
{
    [ServiceContract]
    public interface IFlightSearchServiceSellers
    {
        [WebInvoke(Method = "PUT", BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "sellers/{name}")]
        [OperationContract]
        void AddNewSeller(string name, string url);

        [WebInvoke(Method = "DELETE", UriTemplate = "sellers/{name}")]
        [OperationContract]
        void RemoveSeller(string name);
    }
}